Local Memory

Local memory is a memory pool that RTX64 deterministically allocates to fulfill all RTSS application memory requests. RTSS applications that allocate memory from the local pool do not have to initiate any request to Windows for memory. The local memory pool is created when the first RTSS application is started and provides deterministic behavior for normally non-deterministic functions, as well as greater flexibility and functionality after a system crash (blue screen).

If default memory allocation is not set to Request from local memory pool, RTX64 creates the local memory pool the first time someone uses RTSSrun with the /l flag or the first time they run an RTSS application that calls RtAllocateLocalMemory.

NOTE: A memory region defined by RTX64 cannot be seen by the Visual Studio debugger. You can, however, see the memory region by programmatically reading it.

IMPORTANT! RTX64 does not have guard pages for stack overflow with local memory. An overflow may corrupt the data of other threads, or corrupt the local memory pool management structures, leading to a system bug check.

Topics: